package com.sunstar.club.subject.application.convert;

import com.sunstar.club.subject.application.dto.SubjectAnswerDto;
import com.sunstar.club.subject.domain.entity.SubjectAnswerBo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 信息Dto转换器
 */
@Mapper
public interface SubjectAnswerDtoConverter {

    SubjectAnswerDtoConverter INSTANCE = Mappers.getMapper(SubjectAnswerDtoConverter.class);

    SubjectAnswerBo convertDtoToAnswerBo(SubjectAnswerDto subjectAnswerDto);

    List<SubjectAnswerBo> converListDtoToBo(List<SubjectAnswerDto> dtoList);
}
